package main

func main() {
	// cache := cache_service.NewMemCache()
	//cache.SetMaxMemory("300GB")
	//cache.Set("int", 1, time.Second)
	//cache.Set("bool", false, time.Second)
	//cache.Set("data", map[string]interface{}{"a": 1}, time.Second)
	//cache.Set("int", 1)
	//cache.Set("bool", false)
	//cache.Set("data", map[string]interface{}{"a": 1})
	//cache.Get("int")
	////cache.Del("int")
	//cache.Flush()
	//fmt.Println(cache.Keys())
	//cache.SetMaxMemory("300GB")
	//cache.Set("int", 1, time.Second)
	//cache.Set("bool", false, time.Second)
	//cache.Set("data", map[string]interface{}{"a": 1}, time.Second)
	//cache.Set("int", 1)
	//cache.Set("bool", false)
	//cache.Set("data", map[string]interface{}{"a": 1})
	//cache.Get("int")
	//// cache.Del("int")
	//fmt.Println(cache.Get("int"))
	//fmt.Println(cache.Get("bool"))
	//fmt.Println(cache.Keys())
	//cache.GetValSize(1)
	//cache.GetValSize(false)
	//cache.GetValSize("张三张三张三张三张三张三张三")
	//cache.GetValSize(map[string]string{
	//	"name": "张三张三张三张三张三张三张三",
	//	"addr": "张三张三张三张三张三张三张三张三张三张三张三张三张三张三张三张三张三张三张三张三张三",
	//})
}
